/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tcc.sglj.dao;

import org.hibernate.Session;

import tcc.sglj.util.HibernateUtil;
import tcc.sglj.model.State;

/**
 *
 * @author jhonatan
 */
public class DaoState {

    public static State getTypeCityById(int id) {
        Session session = HibernateUtil.getSession();
        State type = (State) session.load(State.class, id);

        if (type == null) {
            return null;
        }
        return type;
    }
}
